package cn.akwangl.design.pattern.behavioral.strategy.v2;

public class Kitchen {
    /**
     * 抽象策略
     */
    private CrabCooking strategy;

    public void setStrategy(CrabCooking strategy) {
        this.strategy = strategy;
    }

    public CrabCooking getStrategy() {
        return strategy;
    }

    public void CookingMethod() {
        //做菜
        strategy.cookingMethod();
    }
}
